package com.it.io;

public class FloatArrayIOSequence extends AbstractIOSequence<float[], Float> {
	
	@Override
	public void initInput(float[] input) {
		this.input = input;
	}

	@Override
	public boolean hasInput() {
		return inputIndex < input.length;
	}

	@Override
	public Float input() {
		return input[inputIndex++];
	}

	@Override
	public void initOutput(int size) {
		output = new float[size];
	}

	@Override
	public void output(Float e) {
		output[outputIndex++] = e;
	}

	@Override
	public float[] finish() {
		return output;
	}

}